<%--
  Created by IntelliJ IDEA.
  User: Li Chuanwei
  Date: 2023-07-17
  Time: 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品浏览</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css" media="all">
    <script src="${pageContext.request.contextPath}/static/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/fontawesome/css/all.css" media="all">
    <style>
        body {
            background: rgb(234, 232, 235);
        }

        .mainContainer {
            margin-top: 5vh;
            margin-left: 11vw;
            width: 78vw;
            background: white;
            border: 1px solid #f2f2f2;
            border-radius: 10px;
            padding: 10px;
        }

        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }

        .main_btn > p {
            height: 40px;
        }

        .goodsCard {
            width: 100%;
            height: 160px;
            border-radius: 5px;
            background: rgb(247, 249, 250);
            position: relative;
        }

        .goodsCard img {
            padding: 5px;
            border-radius: 10px;
            max-width: 10vw;
            max-height: 10vw;
            min-width: 10vw;
            min-height: 10vw;
        }

        .goodsContainer {
            padding: 10px;
        }

        .goodsText {
        }

        .goodsInfo {
            font-family: "黑体", Times, serif;
            font-weight: bold;
            color: rgba(102, 102, 102);
            margin-top: 10px;
            font-size: 1.1em;
        }


    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <!-- 头部 -->
        <div class="layui-row">
            <jsp:include page="../common/_top.jsp"></jsp:include>
        </div>

        <div class="mainContainer">

            <div class="goodsContainer">
                <div class="layui-row layui-col-space30">
                    <c:forEach items="${goodsList}" var="goods">

                        <div class="layui-col-xs4">
                            <a href="${pageContext.request.contextPath}/goodsDetails?id=${goods.id}">
                                <div class="goodsCard">
                                    <div class="layui-row">
                                        <div class="layui-col-xs6">
                                            <img src="${IMG_SERVER}/goods/${goods.pic}">
                                        </div>
                                        <div class="layui-col-xs6 goodsText">
                                            <div class="layui-row">
                                                <p class="goodsInfo">${goods.name}|${goods.info}</p>
                                            </div>
                                            <div class="layui-row" style="padding-top: 40px">
                                                <p  style="font-size: smaller;color: black ; text-decoration: line-through;">市场价:¥${goods.price1}</p>
                                            </div>
                                            <div class="layui-row">
                                                <p  style="font-size: large;color: red">会员价:¥${goods.price2}</p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>

                    </c:forEach>
                </div>
            </div>

        </div>
    </div>
</div>

</div>

<script>

</script>
</body>
</html>
